define(["jquery",'template',"scprit/patientsQuestionnaire/view/womenHealthQuestionnaire.tpl.js"],function($,template,$tpl){
    var ui = {};
    /*
    * 指导语：
    * */
    ui.instructionInit = function(options){
        $(options.id).html($tpl.instruction());
        var html = template("instruction-tpl",options.data);
        $(options.id).html(html);
    };
    /*
     * 页面布局盒子：
     * */
    ui.layoutBoxInit = function(options){
        $(options.id).html($tpl.layoutBox());
        var html = template("layoutBox-tpl",options);
        $(options.id).html(html);
    };
    /*
    * 页面布局：
    * */
    ui.layoutInit = function(options){
        $(options.id).html($tpl.layout());
        var html = template("layout-tpl",options);
        $(options.id).html(html);
    };
    /*
    * 妇女儿童顶部切换卡：
    * */
    ui.quesTabInit = function(options){
        $(options.id).html($tpl.quesTab());
        var html = template("quesTab-tpl",options);
        $(options.id).html(html);
    };
    /*
     * 下方操作区：
     * */
     //osi
    ui.btnGroupOsiInit = function(options){
        $(options.id).html($tpl.btnGroupOsi());
        var html = template("btnGroupOsi-tpl",options);
        $(options.id).html(html);
    };
    //les
    ui.btnGroupLesInit = function(options){
        $(options.id).html($tpl.btnGroupLes());
        var html = template("btnGroupLes-tpl",options);
        $(options.id).html(html);
    };
    /*
    * 右侧答题进度列表：
    * */
    ui.projectScheduleInit = function(options){
        $(options.id).html($tpl.projectSchedule());
        var html = template("projectSchedule-tpl",options);
        $(options.id).html(html);
    };

    /*
    * 题目：
    * */
    //Les
    ui.questionTypeInit = function(options){
        $(options.id).html($tpl.questionType());
        var html = template("questionType-tpl",options.data);
        $(options.id).html(html);
    };
    //osi
    ui.questionTypeInit2 = function(options){
        $(options.id).html($tpl.questionType2());
        var html = template("questionType2-tpl",options.data);
        $(options.id).html(html);
    };

    /*
    * 添加备注：
    * */
    ui.extralMarkInit = function(options){
        $(options.id).append($tpl.extralMark());
        var html = template("extralMark-tpl",options);
        $(options.id).append(html);
    };

    /*
    * 去提交：
     */
    ui.toSubmitInit = function(options){
        $(options.id).html($tpl.toSubmit());
        var html = template("toSubmit-tpl",options.data);
        $(options.id).html(html);
    };
    ui.lesSubmitInit = function(options){
        $(options.dom).html($tpl.lesSubmit());
        var html = template("lesSubmit-tpl",options);
        $(options.dom).html(html);
    };
    return ui;
});